//
//  HTMenuUserModel.m
//  HT_aigongzuo
//
//  Created by 周昭 on 16/9/1.
//  Copyright © 2016年 HT_Technology. All rights reserved.
//

#import "HTMenuUserModel.h"

@implementation HTMenuUserModel

+ (instancetype)menuWithIcon:(NSString *)icon title:(NSString *)title isWebIcon:(BOOL)isWebIcon linkUrlStr:(NSString *)linkUrlStr
{
    HTMenuUserModel *item = [self menu];
    item.icon = icon;
    item.title = title;
    item.isWebIcon = isWebIcon;
    item.linkUrlStr = linkUrlStr;
    return item;
}

+ (instancetype)menuWithIcon:(NSString *)icon title:(NSString *)title
{
    return [self menuWithIcon:icon title:title isWebIcon:NO linkUrlStr:nil];
}

+ (instancetype)menuWithTitle:(NSString *)title
{
    return [self menuWithIcon:nil title:title];
}

+ (instancetype)menu
{
    return [[self alloc] init];
}

@end
